<div style="border: solid 1px red; padding: 20px">

<h3>Customer Items</h3>

<hr>

<table id="checkin_table" class="tablesorter">
<thead>
    <tr>
      <th>Equipment ID</th>
      <th>Out Date</th>
      <th>In Date</th>
      <th>Late Fee</th>
      <th>Return Now?</th>
    </tr>
</thead>
<tbody id="tablecontent">
<% if @rentals != nil %>
<% @rentals.each do |eE| %>
<% if eE.customer_id == @customer.id %>
    <tr>
        <td>
            <%= eE.equipment_id %>
        </td>
        <td>
            <%= eE.checkout_date %>
        </td>
        <td>
            <%= eE.checkin_date %>
        </td>
        <td>

        </td>
        <td>
            <input type="checkbox" name="returning" value="" checked>
        </td>
    </tr>
<% end end end %>
</tbody>
</table>

<hr>

<%= link_to "Back", :action => 'checkin' %>
<span class="right"><%= link_to "Continue", :action => 'checkin_complete' %></sapn>

<script type="text/javascript">
    $("#checkin_table").tablesorter();
</script>

</div>

